<?php 
$id = $_POST["id"];
$ma = $_POST["maMH"];
$ten = $_POST["tenMH"];
$ly_thuyet = $_POST["lyThuyet"];
$thuc_hanh = $_POST["thucHanh"];
$soTC = $_POST["soTC"];

$sql = "UPDATE mon_hoc SET maMH='$ma', tenMH='$ten', lyThuyet='$ly_thuyet', thucHanh='$thuc_hanh', soTC='$soTC' WHERE ID=".$id;
if(mysql_query($sql))
	echo "Sửa thành công";
else
	die(mysql_error());
?>